//
//  FrameView.m
//  HpnotiqCustomize
//
//  Created by Harmandeep Singh on 17/06/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "FrameView.h"

@implementation FrameView

- (id)initWithFrame:(CGRect)frame withSelectedImage:(UIImage *)selectedImage andFrameImage:(UIImage *)frameImage
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        
        
        mSelectedImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0,
                                                                           0,
                                                                           frame.size.width,
                                                                           frame.size.height)];
        mSelectedImageView.image = selectedImage;
        [self addSubview:mSelectedImageView];
        
        
        
        mFrameImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0,
                                                                        0,
                                                                        frame.size.width,
                                                                        frame.size.height)];
        mFrameImageView.image = frameImage;
        [self addSubview:mFrameImageView];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

- (void)dealloc {
    
    [mFrameImageView release];
    [mSelectedImageView release];
    [super dealloc];
}

@end
